﻿//String Helper functions
function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}

//Screen Space Helper Functions
function PixelPositionX(x)
{
	var px = (x - minX)/(maxX - minX) * width;
	return px;
}

function PixelPositionY(y)
{
	var py = (1 - (y - minY)/(maxY - minY)) * height;
	return py;
}

